package com.tang.netty.nio.network;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

/**
 * 客户端
 *
 * @author tang
 * @since 2023/7/23 20:26
 */
public class Client {

    public static void main(String[] args) throws IOException {
        try (SocketChannel socketChannel = SocketChannel.open()) {
            socketChannel.connect(new InetSocketAddress("localhost", 8080));
            System.out.println("waiting......");
        }
    }

}
